package com.twu.biblioteca.Actions;

import com.twu.biblioteca.Interfaces.MenuItems;
import com.twu.biblioteca.Models.User;

public class LibraryNumberRequester implements MenuItems
{
    private User user;

    public LibraryNumberRequester(User user)
    {
             this.user = user;
    }

    public void takeAction()
    {
        if(user != null)
        {
             System.out.println("UserName: " + user.userName + "\nEmailid : " + user.getEmailId());
        }
        else
        System.out.println("Please talk to Librarian. Thank you.");
    }
}